<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        let providers = {
        	'$scope':12,
            '$http':5,
            '$interval':88
        }
        //
        function show($scope,$http) {
            alert($scope)
            alert($http)
        }
        let str = show.toString();
        str = str.split('{')[0];
        str = str.split('(')[1].replace(')','');
        //获取参数列表
        let args = str.split(',').map(s=>s.trim());
        let values = [];
        args.forEach(s=>{
        	values.push(providers[s]);
        });
        alert(values)

        //在angular内部获取一个参数列表
    </script>
</head>
<body>

</body>
</html>